﻿@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台菜单栏</title>
    <link href="/administration/css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript">
        document.write("<script src='/administration/menu/@{@WorkContext.AdminGid}.js?time=" + new Date() + "'></s" + "cript>")
    </script>
    <script type="text/javascript">
        $(function () {
            //
            initMenu();
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('ul').slideUp();
                if ($ul.is(':visible')) {
                    $(this).next('ul').slideUp();
                } else {
                    $(this).next('ul').slideDown();
                }
            });
           
        });
        //加载Menu
        function initMenu()
        {
            var menuLiList = "";
            if (menuList != undefined && menuList != null && menuList.length > 0) {
                for (var i = 0; i < menuList.length; i++) {
                    menuLiList += "<dd><div class='title'><span><img src='/administration/images/leftico01.png' /></span>" + menuList[i].title + "</div>";

                    menuLiList += "<ul class='menuson'>";
                    for (var j = 0; j < menuList[i].subMenuList.length; j++) {
                        //menuLiList += "<a href='" + menuList[i].subMenuList[j].url + "' target='frameRight'>" + menuList[i].subMenuList[j].title + "</a>";
                        menuLiList += "<li><cite></cite><a href='" + menuList[i].subMenuList[j].url + "' target='frameRight'>" + menuList[i].subMenuList[j].title + "</a><i></i></li>";
                    }
                    menuLiList += "</ul>";
                    menuLiList += "</dd>";
                }
            }
            if (menuLiList != "") {
                document.getElementById("menuUl").innerHTML = menuLiList;
            }
        }
    </script>
</head>
<body style="background:#f0f9fd;">
    @*<div class="lefttop"><span></span>功能导航</div>*@
    <dl id="menuUl" class="leftmenu">
        <li>正在加载...</li>
        @*<dd>
                <div class="title">
                    <span><img src="/administration/images/leftico01.png" /></span>管理信息
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="index.html" target="rightFrame">首页模版</a><i></i></li>
                    <li><cite></cite><a href="imgtable.html" target="rightFrame">图片数据表</a><i></i></li>
                    <li><cite></cite><a href="form.html" target="rightFrame">添加编辑</a><i></i></li>
                    <li><cite></cite><a href="imglist.html" target="rightFrame">图片列表</a><i></i></li>
                    <li><cite></cite><a href="imglist1.html" target="rightFrame">自定义</a><i></i></li>
                    <li><cite></cite><a href="tools.html" target="rightFrame">常用工具</a><i></i></li>
                    <li><cite></cite><a href="filelist.html" target="rightFrame">信息管理</a><i></i></li>
                    <li><cite></cite><a href="tab.html" target="rightFrame">Tab页</a><i></i></li>
                    <li><cite></cite><a href="error.html" target="rightFrame">404页面</a><i></i></li>
                </ul>
            </dd>*@
    </dl>
</body>
</html>
